<!--
 * @Descripttion: 出手鸭小程序
 * @version:1.0.1 
 * @Author: HHL
 * @Date: 2023-10-10 18:03:37
 * @LastEditTime: 2025-06-18 20:28:02
 * @LastEditors: sueRimn
-->

<template>
  <view class="xieyi-box d-flex">
    <view class="icon" @click="$emit('handleAgree')">
      <uni-icons color="#ffae0f" type="checkbox-filled" size="20" v-if="agree"></uni-icons>
      <uni-icons type="circle" color="#999" size="20" v-else></uni-icons>

    </view>
    <view class="t1" @click="$emit('handleAgree')">请认真阅读并勾选</view>
    <view class="t2" @click="uniRouter.navigateTo('/pages/article/info?id=100010')">《隐私协议》</view>
    <view class="t1">和</view>
    <view class="t2" @click="uniRouter.navigateTo('/pages/article/info?id=100009')">《用户协议》</view>
  </view>
</template>
<script>
export default {
  props: {
    agree: { type: Boolean, default: false }
  }
}
</script>


<style lang="scss" scoped>


.xieyi-box {
  margin:40rpx 0 0 0;
  padding: 0rpx 0 30rpx 44rpx;
  font-size: var(--hui-font-size-28);
  line-height: 32rpx;

  .t1 {
    color: var(--hui-color-subtitle);
    padding:0 5rpx;
  }

  .t2 {
    color: var(--hui-color-primary);
    font-weight: 500;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
  }
}</style>